package com.kly.order.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.order.db.entity.PSubscriptionLogEntity;

import java.util.List;

/**
* User: linqu
* Date: 2024-01-17
* Time: 10:39:42.052
*/

public interface PSubscriptionLogDao  extends BaseMapper<PSubscriptionLogEntity> {

    /**
     * 根据messageId查询google推送记录
     */
    PSubscriptionLogEntity getPSubscriptionLogByMessageId(String messageId);
    /**
     * 修改续订状态
     */
    int updateSubscriptionStatus(String messageId, Integer status, String msg);
    /**
     * 修改续订状态
     */
    int updateSubscription(String messageId, String token, String orderId);
    /**
     * 续订成功
     */
    int subscriptionSuccess(String orderId, String msg);
    /**
     * 查询续订失败记录
     */
    List<PSubscriptionLogEntity> listSubscriptFailRecord();
}